pub mod config;
pub mod lock_free_structures;
pub mod optimized_lock_free_hashmap;
pub mod concurrent_engine;
pub mod zero_copy_memory;
pub mod memory_compression;
pub mod advanced_optimizations;
pub mod debugger;
pub mod lazy_memory_pool;
pub mod error;
pub mod pipit_stdlib_integration;
pub mod large_object_optimization;
pub mod memory_optimizer;
pub mod predictive_memory_allocator;
pub mod smart_memory_manager;
pub mod concurrent_gc;
pub mod stdlib_registry;


// 添加字节码模块
pub mod bytecode;

// 添加编译器前端模块
pub mod frontend;

// 添加编译器后端模块
pub mod backend;

// 添加编译器模块
pub mod compiler;

// 添加编译流水线模块
pub mod pipeline;

// 添加VM模块
pub mod vm;
pub mod shared_data;

// 添加RISC-V VM模块
pub mod riscv_vm;

// AOT缓存模块
pub mod aot_cache;

// 添加类型系统模块
pub mod types;



#[cfg(feature = "jit")]
pub mod jit;

// 导出核心功能
pub use config::*;
pub use lock_free_structures::*;
pub use concurrent_engine::*;
pub use vm::*;
pub use error::*;
pub use pipit_stdlib_integration::*;

#[cfg(feature = "jit")]
pub use jit::*;

// 配置Windows链接器
#[cfg(target_os = "windows")]
#[link(name = "ucrt")]
#[link(name = "vcruntime")]
extern "C" {}

